Type Inference with Run-time Logs (Work in Progress)
نویسندگان
چکیده
Gradual type systems offer the possibility of migrating programs in dynamically-typed languages to more statically-typed ones. There is little evidence yet that large, real-world dynamically-typed programs can be migrated with a large degree of automation. Unfortunately, since these systems typically lack principal types, fully automatic type inference is beyond reach. To combat this challenge, we propose using logs from run-time executions to assist inference. As a first step, in this paper we study how to use run-time logs to improve the efficiency of a type inference algorithm for a small language with first-order functions, records, parametric polymorphism, subtyping, and bounded quantification. Handling more expressive features in order to scale up to gradual type systems for dynamic languages is left to future work.
منابع مشابه
A study on the accuracy of motion tracking of thoracic tumors at radiotherapy with external surrogates
Introduction: In radiotherapy with external surrogates, exact information of tumor position is one of the key factors that improves treatment delivery. Many dynamic tumors in thorax region of patient move mainly due to respiration and are known as intra-fractional motion error that must be compensated, as well. One of clinical strategy is using Stereotactic Body Radiation Thera...
متن کاملUCPy: Reverse-Engineering Python
One of the recurring topics in the Python community is how to make Python programs run faster. Typically, a set of solutions is proposed which include: adding static type inference; somehow compiling programs into native code; translating Python programs into Parrot/Lisp/.net code; applying research results from dynamically-typed language implementation. Progress has been made on some of these,...
متن کاملGlobal Progress and its Inference for Dynamically Interleaved Multiparty Sessions
A multiparty session forms a unit of structured interactions among many participants which follow a prescribed scenario specified as a global type signature. When a distributed protocol is engaged in two or more specifications simultaneously, each session following a distinct global type can be interleaved and can interfere at runtime (through the channel delegation operation). High-level sessi...
متن کاملLogChamber: Inferring Source Code Locations Corresponding to Mobile Applications Run-time Logs
We present a development support tool, called LogChamber, which infers source-code locations by analyzing run-time logs of mobile applications. During development, developers insert log functions into applications calls in order to confirm that the applications correctly run as expected. After that, they need to have a process for estimating a program’s runtime behavior in order to identify the...
متن کاملThe Prediction of Forming Limit Diagram of Low Carbon Steel Sheets Using Adaptive Fuzzy Inference System Identifier
The paper deals with devising the combination of fuzzy inference systems (FIS) and neural networks called the adaptive network fuzzy inference system (ANFIS) to determine the forming limit diagram (FLD). In this paper, FLDs are determined experimentally for two grades of low carbon steel sheets using out-of-plane (dome) formability test. The effect of different parameters such as work hardening...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011